# -*- coding: utf-8 -*-
import web
import libME
import pdb

urls = (
	"/listing/(.*)","listing",
	"/following","following"
)
render = web.template.render("templates/")

app = web.application(urls,globals())

class listing:
	def GET(self,text = ""):
		#pdb.set_trace()
		avaliable = libME.List(text.encode("latin-1"))
		following = libME.Following()
		return render.listing(avaliable,following)
		
class following:
	def GET(self):
		following = libME.Following()
		return render.following(following)
		
if __name__ == "__main__": app.run()
